package com.xxxx.seckill.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 * 测试接口 前端控制器
 * </p>
 *
 * @author heyanfeng
 * @since 2022-08-01
 */
@Controller
@RequestMapping("/demo")
public class DemoController {

    /**
     * 测试页面跳转
     *
     * @param:
     * @return:
     */
    @RequestMapping("hello")
    public String hello(Model model){
        model.addAttribute("name","xxxxx");
        return "hello";
    }
}
